# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-jupyter-packaging
pkgver=0.12.0
pkgrel=1
pkgdesc="Tools to help build and install Jupyter Python packages"
url="https://github.com/jupyter/jupyter-packaging"
arch="noarch"
license="BSD-3-Clause"
depends="py3-packaging py3-tomlkit py3-wheel py3-deprecation"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-mock py3-build"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/jupyter-packaging/archive/refs/tags/v0.12.0.tar.gz"
builddir="$srcdir/jupyter-packaging-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="
b99b21328de20c05f4eaca31eb16ef4e808e5ade1c3dfe4d6a18903f388ad8522b72f8651a3a3d916af155b5ad99ec2f3d623323cfb11b3175679b45de7f9178  py3-jupyter-packaging-0.12.0.tar.gz
"
